--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Commit a5243ed4accab63515eb98ac8f6342837f254e6e
Parents : d3aa2ef
Author : Mark Qvist <mark@adepta.io>
Date : 2018-07-04T23:24:07+02:00
Fixed flow control ready indication
Changes
3 files changed, 5 insertions(+), 2 deletions(-)
Diff
diff --git a/Config.h b/Config.h
index 2f572a8..da625fa 100644
--- a/Config.h
+++ b/Config.h
@@ -4,7 +4,7 @@
#define CONFIG_H
#define MAJ_VERS 0x01
- #define MIN_VERS 0x07
+ #define MIN_VERS 0x08
#define MCU_328P 0x90
#define MCU_1284P 0x91
diff --git a/RNode_Firmware.ino b/RNode_Firmware.ino
index d9de441..ca3549b 100644
--- a/RNode_Firmware.ino
+++ b/RNode_Firmware.ino
@@ -220,6 +220,9 @@ void enqueuePacket(size_t length) {
qbuf[insert_addr+i] = sbuf[i];
}
queue_head = new_queue_head;
+ if (!queueFull()) {
+ kiss_indicate_ready();
+ }
} else {
kiss_indicate_error(ERROR_QUEUE_FULL);
}
diff --git a/Utilities.cpp b/Utilities.cpp
index 9d58b57..81f8382 100644
--- a/Utilities.cpp
+++ b/Utilities.cpp
@@ -55,7 +55,7 @@ void led_indicate_info(int cycles) {
}
uint8_t led_standby_min = 1;
-uint8_t led_standby_max = 22;
+uint8_t led_standby_max = 40;
uint8_t led_standby_value = led_standby_min;
int8_t led_standby_direction = 0;
unsigned long led_standby_ticks = 0;
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────